widget-factory: Adapt to label clipping change
authorMatthias Clasen <mclasen@redhat.com>
Sat, 12 Jul 2014 01:15:03 +0000 (21:15 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 12 Jul 2014 01:15:03 +0000 (21:15 -0400)
The paned examples on page 2 were implicitly relying on labels
drawing unclipped. Instead of setting the view class only on the
labels, set it on the paned's instead.

demos/widget-factory/widget-factory.ui

index 07460e3516f665ec47bdd8b45daa529bcdc6cb92..d044df496318aaa5bd771478288c6992d7cf57ad 100644 (file)
@@ -2658,22 +2658,19 @@ Suspendisse feugiat quam quis dolor accumsan cursus. </property>
                                       <object class="GtkPaned">
                                         <property name="visible">True</property>
                                         <property name="orientation">horizontal</property>
+                                        <style>
+                                          <class name="view"/>
+                                        </style>
                                         <child>
                                           <object class="GtkLabel">
                                             <property name="visible">True</property>
                                             <property name="label">Left</property>
-                                            <style>
-                                              <class name="view"/>
-                                            </style>
                                           </object>
                                         </child>
                                         <child>
                                           <object class="GtkLabel">
                                             <property name="visible">True</property>
                                             <property name="label">Right</property>
-                                            <style>
-                                              <class name="view"/>
-                                            </style>
                                           </object>
                                         </child>
                                       </object>
@@ -2688,22 +2685,19 @@ Suspendisse feugiat quam quis dolor accumsan cursus. </property>
                                       <object class="GtkPaned">
                                         <property name="visible">True</property>
                                         <property name="orientation">vertical</property>
+                                        <style>
+                                          <class name="view"/>
+                                        </style>
                                         <child>
                                           <object class="GtkLabel">
                                             <property name="visible">True</property>
                                             <property name="label">Top</property>
-                                            <style>
-                                              <class name="view"/>
-                                            </style>
                                           </object>
                                         </child>
                                         <child>
                                           <object class="GtkLabel">
                                             <property name="visible">True</property>
                                             <property name="label">Bottom</property>
-                                            <style>
-                                              <class name="view"/>
-                                            </style>
                                           </object>
                                         </child>
                                       </object>